package com.j.Collection.Map;

import java.util.Properties;
/**
 * Hashtable的子类，要求key和value都是String。通常用于配置文件的读取
 * */
public class TestProperties {
    public static void main(String[] args) {
        Properties properties=new Properties();
        properties.setProperty("A","chai");                 //存入元素
        properties.setProperty("B","he");
        System.out.println(properties.getProperty("A"));    //查看元素
    }

}
